home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Games Machine 76
/
XENIATGM66.iso
/
Indiana Jones
/
Indiana Jones.exe
/
RESOURCE
/
PREVIEW.GOB
/
cog_item_kindling.cog
< prev
next >
Wrap
Text File
|
1999-11-15
|
2KB
|
100 lines
# Jones 3D Cog Script
#
# item_Kindling.cog
#
# [RT]
#
# (C) 1998 LucasArts Entertainment Company LLC. All Rights Reserved
#
# ===================================================================
symbols
message activated
message callback
cog talkCog local
keyframe get=in_pickup_med.key local
sound foundSnd=INXJ185.wav local
thing player local
thing item=-1 local
int bin=92 local
end
# ===================================================================
code
activated:
player = GetSourceRef();
item = GetSenderRef();
# Disable player controls and stuff
if (MakeMeStop() == -1)
return;
DeselectWeaponWait(player);
StartCutscene(0);
if (GetInv(player, bin) < GetInvMax(player, bin))
{
CaptureThing(player);
PlayKey(player, get, 5, 0x12, 0);
}
else
{
ClearActorFlags(player, 0x200000);
EndCutscene();
return;
}
talkCog = GetCogByIndex(0);
SendMessage(talkCog, 27);
if (Rand() < 0.5)
{
SetExtCamOffset('0.15 -0.05 0.04');
}
else
{
SetExtCamOffset('-0.15 -0.05 0.04');
}
SetExtCamLookOffset('0.0 0.02 0.0');
return;
# -------------------------------------------------------------------
callback:
ReleaseThing(player);
if (item != -1)
{
DestroyThing(item);
item = -1;
}
ChangeInv(player, bin, 1.0);
SetInvAvailable(player, bin, 1);
JonesInvItemChanged(bin);
RestoreExtCam();
Sleep(1.0);
PlayVoice(player, foundSnd, 1.0, 0);
ClearActorFlags(player, 0x200000);
EndCutscene();
return;
end